<template>
  <div class="site-aside-container">
    <Avatar :url="data.avatar" :size="150"/>
    <h1 class="title">{{ data.siteTitle }}</h1>
    <Menu/>
    <Contact/>
    <p class="footer">
        {{data.icp}}
    </p>
  </div>
</template>

<script>
import Avatar from "@/components/Avatar"
import Menu from "./Menu"
import Contact from "./Contact"
import { mapState } from "vuex"
export default {
  components: {
    Avatar,
    Menu,
    Contact
  },
  computed: {
    ...mapState("setting", ["data"])
  }
}
</script>

<style scoped lang="scss">
@import "~@/styles/global.scss";
.site-aside-container {
  width: 100%;
  height: 100%;
  background: $dark;
  padding: 20px 0;
  box-sizing: border-box;
  // overflow-x: hidden;
  // overflow-y: auto;
}
.avatar-container {
  margin: 0 auto;
}
.footer {
  text-align: center;
  font-size: 12px;
}
.title {
  font-size: 1.2em;
  color: #fff;
  text-align: center;
}
.contact-container {
  padding-left: 20px;
}

</style>